package com.ifnk.portaljava.hlyt.beans;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
 * <p>Title:模块类</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2010</p>
 *
 * <p>Company: </p>
 *
 * @author  xiaoyan.zhang.hlyt@gmail.com
 * @version 1.0
 */
public class Module implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7660563150454314881L;
	private int id;
	private String name;
	private String location;
	private String displayname;
	private int enable;
	private Date createtime;
	private Date disabletime;
	private String permission;
	private String memo;

	private String createtimeString;
	private String disabletimeString;

	private Set<RolePermission> rolePermissionSet = new HashSet<RolePermission>();

	public String toString() {
		return name + ":" + location + ":" + displayname + ":" + enable + ":"
				+ createtime + ":" + disabletime + ":" + permission + ":"
				+ memo+":"+rolePermissionSet.size();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getDisplayname() {
		return displayname;
	}

	public void setDisplayname(String displayname) {
		this.displayname = displayname;
	}

	public int getEnable() {
		return enable;
	}

	public void setEnable(int enable) {
		this.enable = enable;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getDisabletime() {
		return disabletime;
	}

	public void setDisabletime(Date disabletime) {
		this.disabletime = disabletime;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Set<RolePermission> getRolePermissionSet() {
		return rolePermissionSet;
	}

	public void setRolePermissionSet(Set<RolePermission> rolePermissionSet) {
		this.rolePermissionSet = rolePermissionSet;
	}

	public String getCreatetimeString() {
		return createtimeString;
	}

	public void setCreatetimeString(String createtimeString) {
		this.createtimeString = createtimeString;
	}

	public String getDisabletimeString() {
		return disabletimeString;
	}

	public void setDisabletimeString(String disabletimeString) {
		this.disabletimeString = disabletimeString;
	}

}
